define(function (require, exports, module) {
    "require:nomunge,exports:nomunge,module:nomunge";

    var view = require('mokit/view');
    var commonUtils = require('../common/utils');
    var self = exports;

    view.View.extend({        

        /**
         * 普通提示框
         */
        alert: function (context, msg, callback, title, button) {
            commonUtils.alert(msg, callback);
        },

        /**
         * 吐司提示框
         */
        toast: function (context, msg, dur, postion) {
            commonUtils.toast(msg, dur, postion);
        },

        /**
         * 确认提示框
         */
        confirm: function (context, msg, callback, title, buttons) {
            commonUtils.confirm(msg, callback, title, buttons);
        },
        
        /**
         * 输入提示框
         */
        prompt: function (context, msg, callback, title, buttons) {
            commonUtils.prompt(msg, callback, title, buttons);
        },
        
        /**
         * 日期格式化
         */
		date_format: function(date, fmtString, flag) {
	        return commonUtils.date_format(date, fmtString, flag);
	    }
	});
});